#pragma once
#include<QImage>
#include<QRect>
enum pipeType{up,down};
class Bars
{
public:
    Bars(int ,int,int,int);
    ~Bars();
public:
    void move();
    QRect getRect(pipeType);
    QRect getSpace();
    QImage & getImage(pipeType);
    void upLevel(int);
    void reset();
private:
   QImage imageU;
   QRect rectU;
   QImage imageD;
   QRect rectD;
   QRect space;
};

